# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=iaxflood
pkgver=0.1
pkgrel=3
epoch=3
groups=('blackarch' 'blackarch-dos' 'blackarch-voip')
pkgdesc='IAX flooder.'
url='http://www.hackingexposedvoip.com/'
makedepends=('gcc' 'make')
depends=('glibc')
license=('GPL')
arch=('x86_64' 'aarch64')
source=("http://www.hackingexposedvoip.com/tools/$pkgname.tar.gz")
sha512sums=('51aa992c9bc0728bbd276191d3d6191f5cc65a341058b91f1433b861fabc3457a1ceed19f7e99f8a1f98f6716968b08885ec377979fb08e0341f6ec7fa9d01e5')

build() {
  cd $pkgname

  sed -i "s:gcc :gcc $CFLAGS :" makefile

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

